package auto1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext ctx=new ClassPathXmlApplicationContext("Appliaction.xml");
        People bean = ctx.getBean(People.class);
        System.out.println(bean.getName());
        System.out.println(bean.getPc().getBrand());
        System.out.println(bean.getPhone().getBrand());
    }
}
